import Vue from 'vue'
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
import elementZH from 'element-ui/lib/locale/lang/zh-CN'
import elementEN from 'element-ui/lib/locale/lang/en'
import menuZH from './zh'
import menuEN from './en'
export default new VueI18n({
  locale: 'en',
  // 为何需要s？？
  messages: {
    zh: {
      morning: '早安',
      goodDay: '祝你开心每一天',
      ...elementZH,
      ...menuZH
    },
    en: {
      morning: 'Good morning',
      goodDay: 'Have a good day',
      ...elementEN,
      ...menuEN
    }
  }
})
